package jk.fox.serializable;

import java.lang.reflect.Type;

/**
 * @author cuichao
 * @Description: ObjectDescriptor
 * @Date: create in 2020/3/31 9:45
 */
@Deprecated
public class ObjectDescriptor {

    private String className;
    private boolean isArray = false;
    private boolean isCollection = false;
    private boolean isMap = false;
    private boolean isPrimitive = false;
    private Type[] generic;

    public boolean isMap() {
        return isMap;
    }

    public void setMap(boolean map) {
        isMap = map;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }


    public boolean isArray() {
        return isArray;
    }

    public void setArray(boolean array) {
        isArray = array;
    }


    public boolean isCollection() {
        return isCollection;
    }

    public void setCollection(boolean collection) {
        isCollection = collection;
    }

    public boolean isPrimitive() {
        return isPrimitive;
    }

    public void setPrimitive(boolean primitive) {
        isPrimitive = primitive;
    }

    public Type[] getGeneric() {
        return generic;
    }

    public void setGeneric(Type[] generic) {
        this.generic = generic;
    }
}
